package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.repository;

import java.util.List;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.statistics.ProcessSummaryQueryVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.statistics.ProcessSummaryVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.repository.FlowProcessSummaryRepository;
import com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.mapper.ProcessSummaryDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author lilh
 * @date 2020/11/4 17:03
 */
@Repository
public class FlowProcessSummaryRepositoryImpl implements FlowProcessSummaryRepository {

    @Autowired
    private ProcessSummaryDAO processSummaryDAO;

    @Override
    public List<ProcessSummaryVo> taskSummary(ProcessSummaryQueryVo processSummaryQueryVo) {
        return processSummaryDAO.taskSummary(processSummaryQueryVo);
    }

    @Override
    public List<ProcessSummaryVo> processInstanceSummary(ProcessSummaryQueryVo processSummaryQueryVo) {
        return processSummaryDAO.processInstanceSummary(processSummaryQueryVo);
    }
}
